from django.db import models

# Create your models here.
class User(models.Model):
    uname=models.CharField(max_length=20,unique=True)
    upwd=models.CharField(max_length=20)
    ucode=models.CharField(max_length=10,default=None)
    uicon=models.ImageField()
    utoken=models.CharField(max_length=100,default=None,null=True,blank=True)

class Home(models.Model):
    img=models.ImageField(max_length=100)

class Content(models.Model):
    title = models.CharField(max_length=50, unique=True)
    text=models.TextField()
    uname = models.CharField(max_length=20)
    con_type=models.CharField(max_length=20)
    time=models.DateTimeField(auto_now_add=True)


class ConStyle(models.Model):
    s_name=models.CharField(max_length=20)
    s_ename=models.CharField(max_length=20)

